<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="component-Dome">
        <eazy-name>

        </eazy-name>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    Vue.component('eazy-name',{
        data:function(){
            return {
                count:0
            }
        },
        template:`<button v-on:click="count++">昨夜梦里梦你{{count}}次</button>`

    });
    new Vue({el:'#component-Dome'})
</script>
</html>